package com.snow.jpa;

import com.snow.model.ILoginUser;

import java.util.Date;

public interface ICreateInfoEntity {
    void setCreateTime(Date createTime);

    Integer getCreateId();
    void setCreateId(Integer createId);

    void setCreateName(String createName);

    default void setCreateInfo(ILoginUser loginUser){
        setCreateId(loginUser.getId());
        setCreateName(loginUser.getName());
        setCreateTime(new Date());
    }
}
